package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class StudentAvgJAva {
    public static void main(String[] args) {
        Student []s=new Student[4];
        s[0]=new Student();
        s[0].java=88;
        s[1]=new Student();
        s[1].java=70;
        s[2]=new Student();
        s[2].java=76;

        Student s2=new Student();
        s2.java=99;
        s[3]=s2;
        for(int i=0;i<s.length;i++)
        {
            s[i].show();
        }
        Jiaowuchu j=new Jiaowuchu();
        float v = j.calcAvgOfJava(s);
        System.out.println("4名同学的java成绩平均分是："+v);
    }
}
